package com.rz.htk.finance.controller;

import com.rz.core.kit.RespKit;
import com.rz.core.resp.ResultResp;
import com.rz.htk.finance.entity.ExchangeRate;
import com.rz.htk.finance.service.IExchangeRateService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @ClassName ExchangeRateController
 * @Description 汇率controller
 * @Author maweiyue
 * @Date 2019/8/19 10:37
 */
@RestController
@RequestMapping("/exchangerate")
public class ExchangeRateController {

    @Resource
    private IExchangeRateService exchangeRateService;

    @PostMapping("/getPage")
    public ResultResp getPage(@RequestBody ExchangeRate product){
        return RespKit.success(exchangeRateService.getPage(product));
    }
}
